package cn.haoxsf.app.common.api.enums;

import lombok.Getter;

/**
 * @program: rest
 * @description: 图片异常枚举
 * @author: Ele qvbanfm@qq.com
 * @create: 2019-10-22 15:17
 **/
@Getter
public enum OrderExceptionEnum implements IServiceEnum {
    ORDER_DOES_NOT_EXIST(50,"订单不存在或者已取消"),
    PAID_CANNOT_BE_CANCELLED(51,"已支付不能取消"),
    ORDER_IS_NOT_ME(51,"订单不是本人不可操作"),
    ORDER_CANCELLED(52,"订单已取消不可重复操作"),
    ORDER_NOT_PAID(53,"订单未支付"),
    ORDER_EXPIRED(54,"订单已过期"),
    CAN_T_TAKE_YOUR_ORDER(55,"不能接自己的订单"),
    ORDER_RECEIVED(56,"订单已被接"),
    YOU_HAVE_TAKEN_THIS_ORDER(57,"你已接过此订单,不可操作,系统已记录您的信息"),
    ORDER_IS_EXIST(58,"订单重复"),
    ORDER_NO_UPDATE(59,"您没有受理此订单")
    ;
    private Integer code;
    private String msg;

    OrderExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }
    @Override
    public String getMsg() {
        return msg;
    }
}
